package com.qf.business.user.feign;

import com.qf.commons.data.result.R;
import com.qf.data.user.dto.SysUserPowersDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user-server", contextId = "sysuser")
@RequestMapping("/sys/user")
public interface SysUserFeign {

    @RequestMapping("/queryUserByUn")
    R<SysUserPowersDto> queryUserByUnAndPw(@RequestParam("username") String username);

}